home *** CD-ROM | disk | FTP | other *** search
/ Network CD 2 / Network CD - Volume 2.iso / programs / internet / tcp / amitcp / amitcp-src-22.lha / AmiTCP-2.2 / src / appl / napsaterm / Smakefile < prev   
Encoding:
Makefile  |  1993-11-09  |  4.0 KB  |  164 lines

  1. # $Id: Smakefile,v 1.10 1993/10/18 15:45:30 ppessi Exp ppessi $
  2. #
  3. # Smakefile for Napsaterm
  4. # Copyright © 1993 AmiTCP/IP Group, <amitcp-group@hut.fi>,
  5. #               Helsinki University of Technology, Finland.
  6. #
  7. # Created      : Mon Mar 29 06:32:31 1993 ppessi
  8. # Last modified: Wed Nov 10 04:42:44 1993 ppessi
  9. #
  10. # Based on original Makefile for Niftyterm by Chris Newman and Todd Williamson
  11. #
  12.  
  13. PROG=  napsaterm
  14. VERS= 2
  15.  
  16. # For socket version
  17. SRCS=  napsaterm.c niftyterm.c rcmd.c niftyprofile.c misc.c emulate.c display.c \
  18.        amigadisplay.c beep.c clip.c keymap.c national.c 
  19. OBJS=  napsaterm.o niftyterm.o rcmd.o niftyprofile.o misc.o emulate.o display.o \
  20.        amigadisplay.o beep.o clip.o keymap.o national.o 
  21. DOCS=  doc/napsaterm.doc doc/niftyterm-1.2.doc
  22. # Uncomment dnetlibs if you are using DNET
  23. LIBS=  #lib dnet:lib/sas_dnet.lib lib dnet:lib/sas_sup.lib 
  24.  
  25. HEADERS= display.h nifty.h amiga.h dispmacros.h niftyprofile.h 
  26.          rlogin.h nio.h
  27.  
  28. CC=      sc
  29. LD=      slink
  30. MAKE=    smake
  31. TAGS=    etags
  32. RM=      delete quiet
  33. MKDIR=   makedir
  34. INSTALL= copy nopro dates all
  35. BUMPREV= BumpRev
  36.  
  37. DEST= AmiTCP:
  38.  
  39. CONFIG= DEF=USE_FIONBIO=1 DEF=USE_SERIAL=1 DEF=USE_STDIO=1 DEF=USE_DNET=0 \
  40.         DEF=USE_RLOGIN=1 
  41.  
  42. OPTFLAGS= Optimize Stripdebug NoDebug
  43. DEBUGFLAGS= NoOptimize DEBUG=FULLFLUSH
  44. CFLAGS= $(OPTFLAGS)
  45.  
  46. GST=     napsa.gst
  47.  
  48. DEFS=    $(CONFIG) "DEF=RCS_ID_C=static char *rcsid=" 
  49. # Include directories for DNet are commented out (they are not included)
  50. IDIRS=IDIR=netinclude: #IDIR=suplib:include/ IDIR=dnet:include/ 
  51. SCOPTIONS= Data=Automatic NoStackCheck StringMerge StructureEquivalence \
  52.      GST=$(GST) NoMultipleIncludes  \
  53.      Map Maphunk Mapsymbols Maplib Mapxreference Noicons \
  54.      Noversion Noerrorhighlight Onerror=Continue Batch \
  55.      Optimizertime Optimizerinlinelocal \
  56.      Ign=161 Ign=100 Ign=88 Ign=62 \
  57.      $(DEFS) $(IDIRS) 
  58.  
  59. all: $(PROG) mymap
  60.  
  61. $(PROG): SCOPTIONS $(GST) $(OBJS)
  62.     $(CC) LINK TO $@ OBJ $(OBJS) BATCH $(LIBS) $(CFLAGS)
  63.  
  64. mymap: mymap.c
  65.     sc RESOPT LINK TO $@ BATCH NOSTARTUP STRIPDEBUG SMALLDATA NOICONS \
  66.     STRINGMERGE DATA=FAR IGN 62,74 $<
  67.  
  68. debug:
  69.     $(MAKE) "CFLAGS=$(DEBUGFLAGS)" "LIBS=$(DEBUGLIBS)" $(PROG)
  70.  
  71. .c.o:
  72.     -@$(RM) $*.o  > nil:
  73.     $(CC) $(CFLAGS) $*.c
  74.  
  75. $(PROG).o: $(SRCS) $(HEADERS)
  76.     $(BUMPREV) $(VERS) $(PROG)_rev
  77.     -@$(RM) $(PROG).o > nil:
  78.     $(CC) $(CFLAGS) $ $(PROG).c
  79.  
  80. SCOPTIONS: Smakefile
  81.     copy to $@ <from < 
  82. $(SCOPTIONS)
  83. <
  84.  
  85. TAGS: $(SRCS) $(HEADERS)
  86.     etags $(SRCS) $(HEADERS)
  87.  
  88. protos:
  89.     $(CC) NOGST $(CFLAGS) $(SRCS) GENPROTOS
  90.  
  91. $(GST): 
  92.     gst `cd`/$@ unload
  93.     -@$(RM) $@ >nil:
  94.     sc NOOBJNAME NOGST MAKEGST=$@ gst.c
  95.  
  96. #
  97. # Destination directories 
  98. #
  99. DESTDIRS= $(DEST)appl/napsaterm/fonts $(DEST)bin $(DEST)devs/keymaps \
  100.     $(DEST)doc $(DEST)db
  101. $(DEST)appl:
  102.     -$(MKDIR) $@
  103. $(DEST)appl/napsaterm: $(DEST)appl
  104.     -$(MKDIR) $@
  105. $(DEST)appl/napsaterm/fonts: $(DEST)appl/napsaterm
  106.     -$(MKDIR) $@
  107. $(DEST)bin:
  108.     -$(MKDIR) $@
  109. $(DEST)devs:
  110.     -$(MKDIR) $@
  111. $(DEST)devs/keymaps: $(DEST)devs
  112.     -$(MKDIR) $@
  113. $(DEST)doc:
  114.     -$(MKDIR) $@
  115. $(DEST)db:
  116.     -$(MKDIR) $@
  117. #
  118. # Install to $(DEST) (for AmiTCP/IP release archive)
  119. install: all $(DESTDIRS)
  120.     #
  121.     # Install napsaterm binary
  122.     #
  123.     $(LD) napsaterm TO $(DEST)bin/NapsaTerm  Stripdebug batch noicons
  124.     #
  125.     # Install mymap
  126.     #
  127.     $(INSTALL) mymap $(DEST)devs/keymaps/mymap
  128.     #
  129.     # Install fonts
  130.     #
  131.     $(INSTALL) fonts $(DEST)appl/napsaterm/fonts
  132.     #
  133.     # Install Docs
  134.     #
  135.     $(INSTALL) $(DOCS) $(DEST)doc
  136.     #
  137.     # Install miscs
  138.     #
  139.     $(INSTALL) napsaprefs $(DEST)db
  140.     
  141. clean:
  142.     -$(RM) \#?.(o|gst|lnk|map) SCOPTIONS
  143.  
  144. #
  145. # File dependences
  146. #
  147. misc.o :     nifty.h misc.c
  148. niftyterm.o:     nifty.h display.h amiga.h rlogin.h niftyterm.c nio.h
  149. rcmd.o:         nifty.h amiga.h rlogin.h rcmd.c
  150. emulate.o:     nifty.h display.h emulate.c
  151. display.o:     nifty.h display.h dispmacros.h display.c
  152. wmdisplay.o:     nifty.h display.h dispmacros.h wmdisplay.c
  153. beep.o:        amiga.h beep.c
  154. clip.o:        amiga.h clip.c
  155. amigadisplay.o: amiga.h nifty.h display.h dispmacros.h niftyprofile.h \
  156.             national.h amigadisplay.c nio.h
  157. national.o:    amiga.h nifty.h    national.h national.c
  158. napsa.gst:      amiga.h nifty.h display.h dispmacros.h niftyprofile.h \
  159.         national.h rlogin.h nio.h
  160. niftyprofile.o: niftyprofile.c niftyprofile.h nifty.h
  161.  
  162.